using Microsoft.EntityFrameworkCore;
using MVCDemosoft.Models;

namespace MVCDmosoft.Db
{
    public class MVCDemosoftDb : DbContextC:\Users\Administrator\Desktop\grade
    
    20_aspnetcore_mvc_exam_pager_soft1_review\包欣如\MVCDemosoft
    {
        private readonly string conString = "server=.;database=MVCDmeosoftDb;uid=sa;pwd=123456;";
        protected override void OnConfiguring(DbContextOptionsBuilder builder){
            builder.UseSqlServer(conString);
        }
        public DbSet<Product> protects{get;set;}
        public DbSet<Categroy> categroy{get;set;}
    }
